home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8278 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Zombies & Daemons
  5. Date: 28 Feb 96 18:54:44 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.825533684@rscernix>
  8. References: <3134348F.7526@citenet.net>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <3134348F.7526@citenet.net> Oliver Lavery <oliver@citenet.net> writes:
  13.  
  14. >I've just finished writting a daemon to handle generating web 
  15. >pages from an Oracle database. When it executes, the parent forks a 
  16. >number of children, all of which are bound to a network port. Each child 
  17. >services requests in order etc. etc. works more or less like an apache 
  18. >httpd...
  19.  
  20. So what?
  21.  
  22. >    The problem is this: when one of the children dies for whatever 
  23. >reason (usually a f*cked OCI call which makes the daemons session 
  24. >unstable), the parent's sigcld handler forks a new child to keep a 
  25. >consistent number of processes running. For some reason, however, the 
  26. >dead child process lingers around as a zombie process ... how do I avoid 
  27. >this?
  28.  
  29. By reading a book about Unix system programming.  If this is too hard
  30. for you, try comp.unix.programmer, _after_ reading the comp.unix.questions
  31. FAQ.
  32.  
  33. >    Also, does SunOS support copy on write memory pages? And do 
  34. >zombie processes still use system resources?
  35.  
  36. What the hell are zombies, OCI calls, sigcld handlers, forks and
  37. copy on write memory pages supposed to do with the C _language_???
  38.  
  39. Dan
  40. --
  41. Dan Pop
  42. CERN, CN Division
  43. Email: danpop@mail.cern.ch 
  44. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  45.